package com.easyban.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Orders implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;
    private Long userId;
    private Long addressId;
    /*
    * 0待审核
    * 1审核通过
    * 2配货
    * 3发货
    * 4收货确认
    * */
    private Integer status;
    private Double totalPrice;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}
